﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="NJL.Web.AdminVisitor.Default" %>

<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="../Controls/WUCUservisitorLeft.ascx" TagName="WUCUservisitorLeft"
    TagPrefix="uc3" %>
<%@ Register Src="../Controls/UCenterHeader.ascx" TagName="UCenterHeader" TagPrefix="uc4" %>
<%@ Register Src="../Controls/UcenterFooter.ascx" TagName="UcenterFooter" TagPrefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Styles/base1.css" />
    <link href="../Styles/manage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
</head>
<body class="managebg">
    <form id="form1" runat="server">
    <uc4:UCenterHeader ID="UCenterHeader1" runat="server" />
    <!--主要内容-->
    <div class="managecont02 cleanFlex">
        <!--右侧内容-->
        <div class="f_right manageRight">
            <!--位置-->
            <div class="place">
                <span>欢迎您：<%=UserName %>&nbsp;&nbsp;[<a href="/Logout.aspx" class="green">退出登陆</a>]</span>
                <p>
                    您现在的位置是&nbsp;&gt;&gt;<strong>首页</strong></p>
            </div>
            <!--内容-->
            <div class="cleanFlex blank">
            </div>
            <div class="manageRightInfo f_right">
                <!--可能感兴趣的地方-->
                <div class="blank">
                </div>
                <div class="boxblue">
                    <div class="titlemanage">
                        <h2>
                            推荐服务</h2>
                    </div>
                    <div class="cont">
                        <asp:Repeater ID="rptService" runat="server">
                            <ItemTemplate>
                                <dl class="imglist" style="height: 80px;">
                                    <dt><a href="/Shop/ServiceDetails.aspx?sid=<%#Eval("ID") %>&id=<%#Eval("NJL_COMPANY_ID") %>"
                                        target="_blank">
                                        <img src="<%#GetImageUrl(Eval("IMAGE_CODE").ToString(),"2")%>" class="picBor" width="93px"
                                            height="69px" /></a> </dt>
                                    <dd>
                                        <a href="/Shop/ServiceDetails.aspx?sid=<%#Eval("ID") %>&id=<%#Eval("NJL_COMPANY_ID") %>"
                                            target="_blank">
                                            <%#PageValidate.SqlText(Eval("SERVICE_NAME").ToString(),10)%></a>
                                    </dd>
                                </dl>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="cleanFlex">
                        </div>
                    </div>
                </div>
                <!--游客分享-->
                <div class="blank">
                </div>
                <div class="boxblue">
                    <div class="titlemanage">
                        <h2>
                            游客分享</h2>
                    </div>
                    <div class="cont">
                        <ul class="arrowList">
                            <asp:Repeater ID="rptShare" runat="server">
                                <ItemTemplate>
                                    <li><a href="/Visitor/TravelsDetails.aspx?id=<%#Eval("id") %>&uid=<%#Eval("NJL_PERSON_ID") %>"
                                        target="_blank">
                                        <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),15)%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
            </div>
            <!--左侧-->
            <div class="manageLeftInfo f_left">
                <!--基本信息-->
                <div class="blank">
                </div>
                <div class="baseinfo">
                    <dl class="boxblue" style="padding: 3px; background: #F0F5F8;">
                        <dd>
                            <p class="greetings">
                                <%
                                    if (UserType == "2" && modelCompany == null)
                                    {
                                %>
                                <span class="f_right"><a href="/RegisterEnterprise.aspx" target="_blank">
                                    <img src="/Images/shenq.jpg" alt="个人申请店铺" title="个人申请店铺" /></a></span>
                                <% 
                                        
                                    }
                                    else if (UserType == "2" && modelCompany.AUDIT_STATE == 0)
                                    {
                                %>
                                <span class="f_right">
                                    <img src="/Images/shenhe.jpg" alt="申请资料审核中" title="申请资料审核中" /></span>
                                <%
                                    }
                                %>
                                <strong>您好，<%=UserName%></strong>
                            </p>
                        </dd>
                        <dt>
                            <asp:Image ID="imghead" runat="server" Width="120px" Height="90px" CssClass="picBor"
                                BorderWidth="1" />
                        </dt>
                        <dd>
                            <div class="f_left">
                                <script type="text/javascript" language="javascript">
                                    function fCheckStateSubmit() {
                                        fClearInput();
                                        if ($('#txtMyState').val() == "") {
                                            alert("内容不能为空哦");
                                            return false;
                                        }
                                        if ($('#txtMyState').val().length > 160) {
                                            alert('输入内容超过160个字！');
                                            return false;
                                        }

                                    }
                                    function fCheckStateLength() {
                                        $('#pStateLength').html(160 - $('#txtMyState').val().length);
                                    }
                                    function fClearInput() {
                                        if ($('#txtMyState').val() == '说说您的心情？') {
                                            $('#txtMyState').val('');
                                        }
                                    }
                                    function fLoadInput() {
                                        if ($('#txtMyState').val() == '') {
                                            $('#txtMyState').val('说说您的心情？');
                                        }
                                    }
                                </script>
                                <div style="float: left; width: 335px;">
                                    <asp:TextBox ID="txtMyState" Text="说说您的心情？" Style="color: #a7a7a7;" onblur="fLoadInput()"
                                        onfocus="fClearInput()" onkeydown="javascript:fCheckStateLength()" onkeyup="javascript:fCheckStateLength()"
                                        runat="server" Width="330px" Height="78px" CssClass="input" TextMode="MultiLine"></asp:TextBox>
                                </div>
                                <div style="float: left; margin-left: 3px;">
                                    <asp:ImageButton ID="ibtnSubmit" runat="server" ImageUrl="/Images/Release.jpg" OnClientClick="return fCheckStateSubmit();"
                                        OnClick="ibtnSubmit_Click" />
                                </div>
                            </div>
                            <p style="line-height: 28px;">
                                还可以输入<span style="width: 100px" id="pStateLength">160</span></p>
                        </dd>
                        <dd class="cleanFlex">
                            <div class="contblue" style="border-top: 1px solid #CFE1F6; background: #fff;">
                                <p id="pUpdateDatetime" runat="server" style="color: #888;">
                                </p>
                                <p id="pUpdateState" runat="server" style="font-size: 14px; color: #369; line-height: 20px;">
                                </p>
                            </div>
                        </dd>
                    </dl>
                    <div class="cleanFlex" style="height: 1px; overflow: hidden;">
                    </div>
                    <!--信息-->
                    <div class="contblue cleanFlex m_top_5 boxblue">
                        <p>
                            <span><a href="InfoCenter.aspx">我的游记</a>(<strong><asp:Literal ID="lityj" runat="server"></asp:Literal></strong>)</span>
                            <span><a href="Friend.aspx">我的关注</a>(<strong><asp:Literal ID="lithy" runat="server"></asp:Literal></strong>)</span>
                            <span><a href="Integral.aspx">我的积分</a>(<strong><asp:Literal ID="litIntegral" runat="server"></asp:Literal></strong>)</span></p>
                    </div>
                </div>
                <!--新鲜事-->
                <%--     <div class="blank">
                </div>
                <div class="boxblue" style="display:none">
                    <div class="titlemanage">
                        <h2>
                            新鲜事</h2>
                    </div>
                    <div class="cont">
                        <dl class="imglist" style="border-bottom: 0;">
                            <dt>
                                <img src="../Images/ads_21.jpg" alt="" /></dt>
                            <dd>
                                <a href="#"><strong>蔡甸第四届西瓜节弄清开幕</strong></a></dd>
                            <dd>
                                时值“六一”来临之际，正好蔡甸区第四届甜瓜采摘节在5.28开幕，时值“六一”来临之际，正好蔡甸区第四届甜瓜采摘节在5.28开幕...</dd>
                            <dd class="more">
                                <a href="#">详情&gt;&gt;</a></dd>
                        </dl>
                    </div>
                </div>--%>
                <!--农家乐推荐-->
                <div class="blank">
                </div>
                <div class="boxblue">
                    <div class="titlemanage">
                        <h2>
                            农家乐推荐</h2>
                    </div>
                    <div class="cleanFlex cont" style="width: 536px">
                        <ul class="imglist">
                            <asp:Repeater runat="server" ID="rptNjl">
                                <ItemTemplate>
                                    <li style="width: 155px; height: 135px;"><a href="/Shop/Default.aspx?id=<%#Eval("ID") %>"
                                        target="_blank">
                                        <img src="<%#Eval("IMAGE_CODE").ToString()!=""?GetImageUrl(Eval("IMAGE_CODE").ToString(),"1"):"/Images/defaultShopHead.jpg"%>"
                                            alt="<%#Eval("COMPANY_NAME") %>" title="<%#Eval("COMPANY_NAME") %>" class="picBor"
                                            width="147px" height="105px" />
                                    </a>
                                        <p>
                                            <a href="/Shop/Default.aspx?id=<%#Eval("ID") %>" target="_blank">
                                                <%#PageValidate.SqlText(Eval("COMPANY_NAME").ToString(),7)%>
                                            </a>
                                        </p>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
                <!--相关信息-->
                <div class="blank">
                </div>
            </div>
        </div>
        <uc3:WUCUservisitorLeft ID="WUCUservisitorLeft1" runat="server" />
        <div class="managecontbottom">
        </div>
    </div>
    <uc5:UcenterFooter ID="UcenterFooter1" runat="server" />
    </form>
</body>
</html>
